Pair of Vintage Old School Fru
37350787 1497495440350481 3137438927867084800 n 1

Welcome
to
Haqnawazafridi.xtgem.com

HomeContact meBOOKSElectronics ProjectLinksQuran MajeedPC GamesPc wares
 const int potmeter1 = A0; 
    const int potmeter2 = A1;
const int potmeter3 = A2; 
    const int potmeter4 = A3;     
     
    void setup() {
      pinMode(potmeter1, INPUT);
      pinMode(potmeter2, INPUT);
       pinMode(potmeter3, INPUT);
      pinMode(potmeter4, INPUT);
      Serial.begin(9600);
    }
     
    void loop() {
      int potValue1 = analogRead(potmeter1); 
      potValue1 = map(potValue1, 0, 1023, 0, 1023);  //First potmeter mapped between 0 and 1023    
      int potValue2 = analogRead(potmeter2);
      potValue2 = map(potValue2, 0, 1023, 2000, 3023);   //Second potmeter mapped between 2000 and 3023 
      int potValue3 = analogRead(potmeter3); 
      potValue3 = map(potValue3, 0, 1023, 4000, 5023);  //First potmeter mapped between 0 and 1023    
      int potValue4 = analogRead(potmeter4);
      potValue4 = map(potValue4, 0, 1023, 6000, 7023); 
      Serial.print(" " );    //to clear the text  
      Serial.println(potValue1);
      delay(100);             
      Serial.print(" " );      
      Serial.println(potValue2);       
      delay(100);    
      Serial.print(" " );    //to clear the text  
      Serial.println(potValue3);
      delay(100);             
      Serial.print(" " );      
      Serial.println(potValue4);       
      delay(100);                          
    }
    

Analog4 readApp inventor